package com.zcoj.service;

import com.zcoj.pojo.Dto.Filing;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

@CacheConfig(cacheNames = "FilingService")
public interface FilingService {

    @CacheEvict(value = "FilingService",allEntries = true)
    Integer updateFiling(Filing filing);

    @Cacheable(key = "'searchFilingNumber'")
    String searchFilingNumber();


    @Cacheable(key = "'findOneFiling'")
    Filing findOneFiling();
}
